package com.citydo.webrtcspringboot.entity;

import lombok.Data;

@Data
public class Message {
    public static final String TYPE_COMMAND_CONNECT = "connect";
    public static final String TYPE_COMMAND_DISCONNECT = "disconnect";
    public static final String TYPE_COMMAND_OFFER = "offer";
    public static final String TYPE_COMMAND_ANSWER = "answer";
    public static final String TYPE_COMMAND_CANDIDATE = "candidate";
    public static final String TYPE_COMMAND_STARTSTREAMING = "startstreaming";
    public static final String TYPE_COMMAND_ENDSTREAMING = "endstreaming";
    public static final String TYPE_COMMAND_STATE = "state";
    public static final String TYPE_COMMAND_SENDMSG = "sendmsg";
    public static final String TYPE_COMMAND_UDP = "udp";


    public static final String CONNECTER_TWITCH = "Twitch";
    public static final String CONNECTER_WEB = "Web";

    private String type;
    private String from;
    private String data;
    private String connectionId;
    private String identity;
    private String userName;
    private String to = null;
    private String token = null;
}
